package com.example.demo.mapper;

import com.example.demo.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2023-12-06
 * Time: 20:05
 */
@Mapper
@Component
public interface UserMapper {
    public int register(@Param("identifyId") String identifyId,@Param("password") String password);

    public User login(@Param("identifyId") String identifyId,@Param("password") String password);

    public User getUserByIdentifyId(@Param("identifyId") String identifyId);
}
